package com.example.pojo;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@ApiModel("订单实体类")
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class Ticket {

    @ApiModelProperty("订单ID")
    private int ticketID;
    @ApiModelProperty("订单号")
    private String orderNum;
    @ApiModelProperty("支付宝交易号")
    private String tradeNo;
    @ApiModelProperty("状态")
    private String status;
    @ApiModelProperty("用户ID")
    private Integer userID;
    @ApiModelProperty("赛事ID")
    private Integer eventID;
    @ApiModelProperty("座位ID")
    private Integer seatID;
    @ApiModelProperty("订单价格")
    private BigDecimal ticketPrice;
    @ApiModelProperty("订单的创建时刻")
    private LocalDateTime createTime;
}
